//
//  TopImgBottomTextBtn.h
//  WatermarkCamera
//
//  Created by 赵新 on 5/7/2024.
//

#import <UIKit/UIKit.h>


@interface ImgTextControl :UIControl

- (instancetype)initWithTitle:(NSString *)title image:(UIImage *)image;

@property(nonatomic, strong)UILabel *label;
@property(nonatomic, strong)UIImageView *imageView;
@property(nonatomic, strong)NSString *title;
@property(nonatomic, strong)UIColor *textColor;
@property(nonatomic, strong)UIFont *font;
@property(nonatomic, assign)NSTextAlignment textAlignment;
@property(nonatomic, assign)CGFloat imgTextSpacing;
@property(nonatomic, assign)UIEdgeInsets contentEdge;
@property(nonatomic, assign)CGFloat imgSize;

- (void)setTitle:(NSString *)title ;

- (void)setTextColor:(UIColor *)textColor;
- (void)setFont:(UIFont *)font;
- (void)setTextAlignment:(NSTextAlignment)textAlignment ;
- (void)setImgTextSpacing:(CGFloat)imgTextSpacing ;
- (void)setContentEdge:(UIEdgeInsets)contentEdge;

- (void)setImgSize:(CGFloat)imgSize;

- (void)setTintColor:(UIColor *)color;

- (void)setImageTintColor:(UIColor *)color;


- (void)layoutImgText;

- (void)config;
@end

